package com.spdb.oa.type;

import java.util.List;

/**
 * datatype map as ItemList
 * @author lij70
 *
 */
public class ListWFFormElement extends WFFormElement {
	
	/**
	 * one Entry map to one item
	 * @author lij70
	 *
	 */
	public static class Entry {
		public String value;
		public String id;
		public String name;
		public String content;
		public String displayName;
		public Entry(String value, String id, String name, String content, String displayName) {
			super();
			this.value = value;
			this.id = id;
			this.name = name;
			this.content = content;
			this.displayName = displayName;
		}
		@Override
		public String toString() {
			return "Entry [value=" + value + ", id=" + id + ", name=" + name + ", content=" + content + ", displayName="
					+ displayName + "]";
		}


	}
	
	public ListWFFormElement(String showField, List<Entry> entries) {
		super();
		this.showField = showField;
		this.entries = entries;
	}

	@Override
	public String toString() {
		return "ListWFFormElement [showField=" + showField + ", entries=" + entries + ", id=" + id + ", name=" + name
				+ ", displayName=" + displayName + ", controlType=" + controlType + ", required=" + required
				+ ", visible=" + visible + ", enabled=" + enabled + ", dataType=" + dataType + "]";
	}

	public String showField;
	
	public List<ListWFFormElement.Entry> entries;
}
